import service from '@/utils/request'
// @Tags Vips
// @Summary 创建会员等级管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Vips true "创建会员等级管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /vips/createVips [post]
export const createVips = (data) => {
  return service({
    url: '/vips/createVips',
    method: 'post',
    data
  })
}

// @Tags Vips
// @Summary 删除会员等级管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Vips true "删除会员等级管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /vips/deleteVips [delete]
export const deleteVips = (params) => {
  return service({
    url: '/vips/deleteVips',
    method: 'delete',
    params
  })
}

// @Tags Vips
// @Summary 批量删除会员等级管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除会员等级管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /vips/deleteVips [delete]
export const deleteVipsByIds = (params) => {
  return service({
    url: '/vips/deleteVipsByIds',
    method: 'delete',
    params
  })
}

// @Tags Vips
// @Summary 更新会员等级管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Vips true "更新会员等级管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /vips/updateVips [put]
export const updateVips = (data) => {
  return service({
    url: '/vips/updateVips',
    method: 'put',
    data
  })
}

// @Tags Vips
// @Summary 用id查询会员等级管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Vips true "用id查询会员等级管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /vips/findVips [get]
export const findVips = (params) => {
  return service({
    url: '/vips/findVips',
    method: 'get',
    params
  })
}

// @Tags Vips
// @Summary 分页获取会员等级管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取会员等级管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /vips/getVipsList [get]
export const getVipsList = (params) => {
  return service({
    url: '/vips/getVipsList',
    method: 'get',
    params
  })
}

// @Tags Vips
// @Summary 不需要鉴权的会员等级管理接口
// @Accept application/json
// @Produce application/json
// @Param data query yunxiangchuanReq.VipsSearch true "分页获取会员等级管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /vips/getVipsPublic [get]
export const getVipsPublic = () => {
  return service({
    url: '/vips/getVipsPublic',
    method: 'get',
  })
}
